package com.cy.pj.goods.controller;

import com.cy.pj.goods.pojo.R;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GrobleException {

    @ExceptionHandler(Exception.class)
    public R exception(Exception e) {
        R r = new R(e);
        return r;
    }
}
